import proFetch from "../../../../../public/functions/project-fetch";

/**
 * 树展开子节点事件，ajax请求子节点数据
 * @param tree_node_id
 * @constructor
 */
export default function CenterTreeFirstChildAction(tree_node_id,pk_org) {
    const postData = {
        pk_org,
        tree_node_id
    };

    return new Promise(((resolve, reject) => {
            proFetch({
                url: '/nccloud/hrcm/center/CenterTreeFirstChildAction.do',
                body: postData,
            })
                .then((res) => {
                    if (res.success) {
                        resolve(res)
                    }
                });
        })
    );
}